﻿using System;
using EkStudio.com.bean.xml.reflection;

namespace EkStudio.com.bean.xml.RootInterface.FieldEvent
{
    public class BillDataFillsqlWhereItem:BillObjectInterface
    {
        private string key = "";
        private string column = "";
        private string caption = "";
        private string etype = "=";

        [Xml("key")]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        [Xml("column")]
        public string Column
        {
            get
            {
                return column;
            }

            set
            {
                column = value;
            }
        }
        [Xml("caption")]
        public string Caption
        {
            get
            {
                return caption;
            }

            set
            {
                caption = value;
            }
        }
        [Xml]
        public string Etype
        {
            get { return etype; }
            set { etype = value; }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            BillDataFillsqlWhereItem clone = new BillDataFillsqlWhereItem();
            clone.Caption = caption;
            clone.Column = column;
            clone.Key = key;

            return clone;
        }
    }
}
